package com.gzucm.Scholarship.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel
public class TaskStateDTO {

    @NotBlank(message = "状态名称不能为空")
    @ApiModelProperty(value = "状态名称", required = true, allowableValues = "OPEN_UP,EXAMINE,REPORT,SUSPEND")
    private String stateName;

    @NotNull(message = "定时时间不能为空")
    @ApiModelProperty(value = "定时时间", required = true)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date stateValue;

}
